<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    <title>权限管理系统2.0</title>
    <link rel="stylesheet" href="/system/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="/system/css/index.css" media="all" />
</head>
<body class="main_body">
<div class="layui-layout layui-layout-admin">
    <!-- 顶部 -->
    <div class="layui-header header">
        <div class="layui-main mag0">
            <h2 style="color: #FFFFFF"></h2>
            <ul class="layui-nav top_menu">
                <li class="layui-nav-item exit">
                    <a href="/user/toMyself" target="right_view">我的资料</a>
                </li>
                <li class="layui-nav-item exit">
                    <a onclick="editPwd()">修改密码</a>
                </li>
                <li class="layui-nav-item exit">
                    <a href="/user/toOut">退出</a>
                </li>
            </ul>
        </div>
    </div>
    <!-- 左侧导航 -->
    <div class="layui-side layui-bg-black">
        <div class="user-photo">
            <a class="img"><img src="" class="userAvatar"/></a>
            <p>你好！<span th:text="${name}"></span>, 欢迎登录</p>
        </div>
        <ul class="layui-nav layui-nav-tree layui-bg-cyan layui-inline" lay-filter="demo">
            <li class="layui-nav-item layui-nav-itemed">
                <a>系统管理</a>
                <dl class="layui-nav-child">
                    <shiro:hasPermission name = "SysUser|toSelect">
                        <dd><a href="/user/toUser" target="right_view" th:text="系统用户管理"></a></dd>
                    </shiro:hasPermission>
                        <dd><a href="/user/toLog" target="right_view"  th:text="查看登录日志"></a></dd>
                    <shiro:hasPermission name = "SysDict|toSelect">
                        <dd><a href="/sysDictInfoController/toSysDictInfo" target="right_view" th:text="系统字典管理"></a></dd>
                    </shiro:hasPermission>
                    <shiro:hasPermission name = "SysRole|toSelect">
                        <dd><a href="/sysRoleController/toSysRole" target="right_view" th:text="系统角色管理"></a></dd>
                    </shiro:hasPermission>
                    <shiro:hasPermission name = "SysResource|toSelect">
                        <dd><a href="/sysResource/toSysResource" target="right_view" th:text="系统菜单管理"></a></dd>
                    </shiro:hasPermission>
                        <dd><a href="/staff/toStaff" target="right_view"  th:text="员工信息管理"></a></dd>
                    <shiro:hasPermission name = "SysPost|toSelect">
                        <dd><a href="/post/toPost" target="right_view" th:text="职位信息管理"></a></dd>
                    </shiro:hasPermission>
                </dl>
            </li>
        </ul>
    </div>
    <div class="layui-body layui-form" >
        <div class="layui-tab mag0" lay-filter="bodyTab" id="top_tabs_box">
            <ul class="layui-tab-title top_tab" id="top_tabs">
                <li class="layui-this" lay-id=""><i class="layui-icon">&#xe68e;</i> <cite>系统管理</cite></li>
            </ul>
            <div class="layui-tab-content clildFrame">
                <div class="layui-tab-item layui-show">
                    <iframe id="page" name="right_view" src=""></iframe>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 移动导航 -->
<div class="site-tree-mobile"><i class="layui-icon">&#xe602;</i></div>
<div class="site-mobile-shade"></div>
<script type="text/javascript" src="/system/js/jquery-3.3.1.js"></script>
<script type="text/javascript" src="/system/layui/layui.js"></script>
<script type="text/javascript" src="/main/main.js"></script>
</body>
</html>